val spark = SparkSession.builder()
    .appName("Hudi Spark Reader")
    .master("local[1]")
    .config("spark.serializer", "org.apache.spark.serializer.KryoSerializer")
    .config("spark.sql.extensions", "org.apache.spark.sql.hudi.HoodieSparkSessionExtension")
    .config("spark.sql.catalog.spark_catalog", "org.apache.spark.sql.hudi.catalog.HoodieCatalog")
    .config("spark.sql.hive.convertMetastoreParquet", "false")
    // 如果需要可以添加更多配置
    .getOrCreate() 